package cn.wolfcode.luowowo.mgrsite.controller;


import cn.wolfcode.luowowo.article.query.StrategyCommendQuery;
import cn.wolfcode.luowowo.article.service.IStrategyCommendService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("strategyCommend")
public class StrategyCommendController {

    @Reference
    private IStrategyCommendService strategyCommendService;




    @RequestMapping("list")
    public String list(Model model, @ModelAttribute("qo")StrategyCommendQuery qo){

        PageInfo pageInfo = strategyCommendService.query(qo);
        model.addAttribute("pageInfo",pageInfo);

        return "strategyCommend/list";
    }


}
